<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="my.dao.*"%>
<%
String id = request.getParameter("d_id");
String name = request.getParameter("d_name");
String remark = request.getParameter("d_remark");

MyDao.update("insert into dep(d_name,d_remark) values(?,?)", name, remark);

out.print(MyDao.jsonMessage(true, "新增成功！"));
%>